package com.scau.databaseexam.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class MainController {

    @RequestMapping("/")
    public String login(){
        return "login";
    }

    @RequestMapping("/index.html")
    public String index(){
        return "login";
    }

    @GetMapping("/dashboard.html")
    public String todashboard(){
        return "dashboard";
    }

    @GetMapping("/main.html")
    public String tomain(){
        return "dashboard";
    }


    @RequestMapping("/1")
    public String login_and_resigter(){
        return "login_register_modal";
    }
}
